<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATES_PATH;?>/css/jingBeanBalance.css">
<style>.select-ys{color: white !important;}</style>
<script type="text/javascript">
    $(function () {
        $('.container .line>ul>li').css({'color':'#eb6876','cursor':'pointer'}).bind('click', function () {
            $(this).addClass('select-ys').siblings('li').removeClass('select-ys');
            $('#main>div').hide().eq($(this).index()).show();
        })
    });
</script>
<header class="layout head padding-small">
    <a href="javascript:back(true);" class="hBack float-left"></a>
    <h4 class="hTxt float-left text-center text-white">我的课程</h4>
    <a href="javascript:;" id="btnJdkey" class="hHlep float-right"></a>
</header>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>我的课程</title><!--从我的美财页面的 我的课程进入-->
<link rel="stylesheet" href="<?php echo TEMPLATES_PATH;?>/css/pintuer.css">
<link rel="stylesheet" href="<?php echo TEMPLATES_PATH;?>/css/university.css" />

</head>

<body>
<div class="layout padding myLesson-wrap">
    <div class="myLesson-class bg-white text-center text-small clearfix radius-big margin-bottom ">
       <a href="index.php?act=member_lesson&op=member_lesson_xx" class="x4 padding curr">已购买</a>
        <a href="index.php?act=member_lesson&op=member_lesson_xz" class="x4 padding">已下载</a>
        <a href="index.php?act=member_lesson&op=member_lesson_sc"class="x4 padding">收藏</a>
    </div>
    <table class="radius-big layout padding-small bg-white lesson-list">
        <thead class="layout">
            <tr class="border-bottom layout">
                <th class="x3">课程</th>
                <th class="x3">类型</th>
                <th class="x3">价格</th>
                <th class="x3">操作</th>
            </tr>
        </thead>
        <tbody class="layout">
        	<?php if(!empty($output['member_lesson_xx_list']) && is_array($output['member_lesson_xx_list'])){?>
        <?php foreach ($output['member_lesson_xx_list'] as $_k => $_v) {?>
        	
        	
            <tr class="layout">
                <td class="text-small"><a href="index.php?act=university_detail&op=index&study_id=<?php echo $_v['study_id']?>"><?php echo universityModel::getStudy_name($_v['study_id'])?></td>
                <td><?php echo universityModel::study_cat_id(universityModel::getStudy_cat_id($_v['study_id'])) ?></td>
                <td class="text-green"><?php if(universityModel::getstudy_price($_v['study_id'])==0 && universityModel::getstudy_points($_v['study_id'])!=0){
                    		echo "积分:".universityModel::getstudy_points($_v['study_id']);
                    	}else if(universityModel::getstudy_price($_v['study_id'])==0 && universityModel::getstudy_points($_v['study_id'])==0){
                    		echo "免费";
                    	}else{
                    		echo "￥".universityModel::getstudy_price($_v['study_id']);
                    	}
                    	?></td>
                <td><a href="index.php?act=university_detail&op=index&study_id=<?php echo $_v['study_id']?>"><img src="<?php echo TEMPLATES_PATH;?>/images/mylesson.png" alt="" width=""></a></a></td><!--链接到视频详情页-->
            </tr>
            <?php }}?>
        </tbody>
        <tfoot class="layout">
            <tr class="layout">
                <td colspan="20"> 
                </td>
            </tr>
        </tfoot>
    </table>
       <?php require_once 'page.php';?>
</div>
</body>
</html>
